<template>
	<view class="site">
		<block v-for="(item,index) in list" :key="index">
			<site-list :list="item"></site-list>
		</block>
		<view class="but" @tap="Setsite"><image src="../../static/shop/组 1 (2).png" mode=""></image><text>新增地址</text></view>
	</view>
</template>

<script>
	import{ mapState } from 'vuex'
	export default {
		data() {
			return {
				
			};
		},
		computed:{
			...mapState({
				list:state=>state.site.list
			})
		},
		methods:{
			Setsite(){
				uni.navigateTo({
					url:"/pages/site/site"
				})
			}
		}
	}
</script>

<style lang="less" scoped>
.site{
	display: flex;
		flex-direction: column;
		align-items: center;
		width: 100vw;
		min-height: 100vh;
		background-color: #f5f5f5;
		}
		.but{
			display: flex;
			align-items: center;
			justify-content: center;
			width: 710rpx;
			height: 80rpx;
			color: #fff;
			border-radius: 10rpx;
			text-align: center;
			line-height: 80rpx;
			margin-top: 200rpx;
			background-color: #00c783;
			image{
				width: 30rpx;
				height: 30rpx;
				margin-right: 10rpx;
			}
		}
</style>
